import service from "../utils/request";

    /*
     *  登录接口
     */
    export function Login(requestData) {
        return service.request({
            url:'/login/',
            method:'post',
            params:requestData
        })
    }
    /*
     *   注册接口
     */
    export function Register(requestData){
        return service.request({
            url:'/register/',
            method:'post',
            params:requestData
        })
    }
    /*
     *  获取验证码
     */
    export function GetCode(data){
        return service.request({
            url:'/getCode/',
            method:'post',
            async:false,
            dataType:'text',
            params:{"username":data}
        })
    }
